package cn.exrick.pojo.front;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.exrick.pojo.TbAddress;
import lombok.Data;

@Data
public class Order implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static int ORDER_STATUS_WAIT_PAY = 0;
    public static int ORDER_STATUS_WAIT_MAIL = 1;
    public static int ORDER_STATUS_WAIT_RECE = 2;
    public static int ORDER_STATUS_WAIT_RATE = 3;
    public static int ORDER_STATUS_RATED = 4;
    public static int ORDER_STATUS_CLOSE = 5;

    private Long orderId;
    private Long memberId;

    private BigDecimal orderTotal;

    private TbAddress addressInfo;

    private List<CartProduct> goodsList;

    private Integer orderStatus;//0:未付款,1:已付款(未发货),2:已发货(待收货),3:已收货(交易成功,待评价),4:已评价,5:交易关闭

	private Integer returnExchangeStatus; // -1:待申请 0:待处理 1:已处理 2:已拒绝

    private Date createDate;

    private Date updateDate;

    private Date closeDate;

    private Date finishDate;

    private Date payDate;

    private String shippingName;//快递名

    private String shippingCode;//快递号

    private Date consignTime;//发货时间

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getMemberId() {
		return memberId;
	}

	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public BigDecimal getOrderTotal() {
		return orderTotal;
	}

	public void setOrderTotal(BigDecimal orderTotal) {
		this.orderTotal = orderTotal;
	}

	public TbAddress getAddressInfo() {
		return addressInfo;
	}

	public void setAddressInfo(TbAddress addressInfo) {
		this.addressInfo = addressInfo;
	}

	public List<CartProduct> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<CartProduct> goodsList) {
		this.goodsList = goodsList;
	}

	public Integer getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Integer orderStatus) {
		this.orderStatus = orderStatus;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCloseDate() {
		return closeDate;
	}

	public void setCloseDate(Date closeDate) {
		this.closeDate = closeDate;
	}

	public Date getFinishDate() {
		return finishDate;
	}

	public void setFinishDate(Date finishDate) {
		this.finishDate = finishDate;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getShippingName() {
		return shippingName;
	}

	public void setShippingName(String shippingName) {
		this.shippingName = shippingName;
	}

	public String getShippingCode() {
		return shippingCode;
	}

	public void setShippingCode(String shippingCode) {
		this.shippingCode = shippingCode;
	}

	public Date getConsignTime() {
		return consignTime;
	}

	public void setConsignTime(Date consignTime) {
		this.consignTime = consignTime;
	}

	public Integer getReturnExchangeStatus() {
		return returnExchangeStatus;
	}

	public void setReturnExchangeStatus(Integer returnExchangeStatus) {
		this.returnExchangeStatus = returnExchangeStatus;
	}

}
